package com.xpalive.common.helper.gson;

import com.google.gson.ExclusionStrategy;

public class FieldIncludeHelper {
	private FieldIncludeHelper(){
		
	}
	/**
	 * fieldNames 为空则全部不包含
	 * init:
	 *
	 * @param fieldNames
	 * @param clazz
	 * @return
	 * @author   xiongping
	 */
	public static ExclusionStrategy init(String[] fieldNames,Class<?> clazz){
		return new FieldExclusionStrategyHelper(fieldNames,true,clazz);
	}
}